<script src="../../resources/js-test.js"></script>
<div style="position:relative">
<div style="-webkit-writing-mode: vertical-rl; background-color: green; width: 100px; height: 100px;">
    <div style="width: 5px"></div>
    <div id=vertical style="background-color: yellow; width: 10px; position: relative; left: -20px;"></div>
</div>
</div>

<pre id=console></pre>

<script>
shouldBe('document.getElementById("vertical").offsetLeft', '65');
</script>
